<script>
    $(function() {
        $("#Date" ).datepicker({ dateFormat: 'mm-dd-yy' , changeMonth: true,
			changeYear: true});
    });
</script>
<form enctype="multipart/form-data" name="actor" action="<?php echo $this->baseUrl; ?>/Administration/schedule/" method="post">
    <input type="hidden" name="formSchedule" />
    <label>Room</label>
    <select name="Room_ID">
        <?php foreach ($this->rooms as $room) { ?>
            <option><?php echo $room["Room_ID"]; ?></option>
        <?php } ?>
    </select>
    <br /><br />
    
    <label>Movie</label>
    <select name="Movie_ID">
        <?php foreach ($this->movies as $movie) { ?>
            <option value="<?php echo $movie["Movie_ID"]; ?>"><?php echo $movie["Title"]; ?></option>
        <?php } ?>
    </select>
    <br /><br />

    <label>Date</label><br />
    <input type="text" id="Date" name="Date" />
    <br /><br />

    <label>Hour</label>
    <select name="Hour">
        <?php
        for($i = 0; $i < 24; $i++) {
            echo "<option>".$i."</option>";
        }
    ?>
    </select>

    <label>Minute</label>
    <select name="Min">
        <?php
        for($i = 0; $i < 60; $i++) {
            echo "<option>".$i."</option>";
        }
    ?>
    </select>
    <br /><br />
    <input type="submit" />
</form>
